 <tr class="<%= cycle('list_line_odd', 'list_line_even') %> <%= @content.post_status == "Draft" ? 'draft' : '' %>">

  <td class="hidden-xs"><%= check_box_tag 'pages[]', @content.id %></td>
  
  <td>
    <%= ancestory_indent @content %><%= @content.post_title %>
    <% if !@content.parent.blank? && @content.parent['disabled'] == 'Y' %>
      <strong>(parent: <%= @content.parent['post_title'] %>)</strong>
    <% end %>
    <%= @content.post_status == "Draft" ? t("views.admin.partials.articles_table.draft") : '' %>
  </td>
  <td class="hidden-xs"><%= @content.post_date.strftime "%d-%m-%Y" %></td>
  <td class="center">

    <div class="btn-group pull-right">
      <%= link_to edit_admin_page_path(@content), :class => 'btn btn-xs btn-default' do %>
        <i class="fa fa-pencil"></i>
      <% end %>        
      <%= link_to page_path(@content), :class => 'btn btn-xs btn-default', :target => "_blank" do %>
        <i class="fa fa-search"></i>
      <% end %> 
      <%= link_to admin_page_path(@content), method: :delete, data: { confirm: t("views.admin.generic.confirm") }, :class => 'btn btn-xs btn-danger' do %>
        <i class="fa fa-trash-o"></i>
      <% end %>
    </div>

  </td>

</tr>

<% if !@sub.blank? %>

  <%= nested_table(@sub, 'admin/partials/table_row') %>

<% end %>